//
//  JPPayFootView.m
//  DHJPHotel
//
//  Created by Apple on 2018/5/21.
//  Copyright © 2018年 Apple. All rights reserved.
//

#import "JPPayFootView.h"
@interface JPPayFootView()
@property (weak, nonatomic) IBOutlet UIButton *confirmButton;

@end
@implementation JPPayFootView
+ (instancetype)footView
{
    UINib *nib = [UINib nibWithNibName:@"JPPayFootView" bundle:nil];
    JPPayFootView *v = [nib instantiateWithOwner:nil options:nil][0];
    return v;
}
- (void)awakeFromNib
{
    [super awakeFromNib];
    
    self.confirmButton.layer.masksToBounds = YES;
    self.confirmButton.layer.cornerRadius = 6;
}
- (IBAction)confirmButtonClick:(UIButton *)sender
{
    NSAssert(self.confirmPayButtonClick != nil, @"self.confirmPayButtonClick 不能为nil");
    self.confirmPayButtonClick();
}

@end
